package com.songtai.action.admin.gsjj;

import com.songtai.action.SongtaiActionSupport;

/**
 * @author zzy
 * @catagory  重定向
 */
public class RedirectAction extends SongtaiActionSupport {
	private static final long serialVersionUID = 971463750325347181L;
	//节点ID
	private int nodeid;
	@Override
	public String execute() throws Exception {
		String result=null;
		switch (nodeid) {
		//公司环境
		case 4:
			result = ERROR;
			break;
		//公司文化
		case 5:
			result = INPUT;
			break;
		//公司简介
		case 6:
			result = LOGIN;
			break;
		//诚聘英才	
		case 7:
			result = NONE;
			break;
		//团队精英
		case 8:
			result = SUCCESS;
			break;
		//默认公司简介
		default:
			result = INPUT;
			break;
		}
		return result;
	}
	/**
	 * @return the nodeid
	 */
	public int getNodeid() {
		return nodeid;
	}
	/**
	 * @param nodeid the nodeid to set
	 */
	public void setNodeid(int nodeid) {
		this.nodeid = nodeid;
	}
	
}
